package ru.urfc.portal.model.catalogs;

import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.MappedSuperclass;

import ru.urfc.portal.model.SysObject;

@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public abstract class SysCatalogItem extends SysObject {

	private String code;
	private String text;
	
	// for JAXB only
	public SysCatalogItem() {
	}

	public SysCatalogItem(String code, String text) {
		super();
		this.code = code;
		this.text = text;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}
	
}
